package com.bifang.common.vo.excel;

import com.bifang.common.vo.BaseVO;
import com.bifang.common.vo.SelectVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import lombok.Data;

/**
 * excel模板字段表
 *
 * @author chenzh
 * @since 2021-02-01
 */
@Data
@ApiModel(value = "ExcelParam对象", description = "excel模板字段表")
public class ExcelParamVO extends BaseVO {

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "模板id")
    private String excelModelId;

    @ApiModelProperty(value = "字段key")
    private String key;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "父字段")
    private String parentKey;

    @ApiModelProperty(value = "父字段名称")
    private String parentTitle;

    @ApiModelProperty(value = "默认宽度：父字段宽度根据子字段的宽度计算")
    private Integer width;

    @ApiModelProperty(
            value =
                    "类型:default 常规 text 文本 number 数字 date 日期 datetime 日期到秒 select 单选下拉框 multiple-select 多选下拉 cascader 联级（多级）下拉")
    private String cellType;

    @ApiModelProperty(value = "类型中文")
    private String cellTypeName;

    @ApiModelProperty(value = "小数点位数")
    private Integer decimalPlaces;

    @ApiModelProperty(value = "头部字体颜色 0-64")
    private Short headerColor;

    @ApiModelProperty(value = "数据字体颜色 0-64")
    private Short bodyColor;

    @ApiModelProperty(value = "头部背景颜色 0-64")
    private Short headerBgColor;

    @ApiModelProperty(value = "字体背景颜色 0-64")
    private Short bodyBgColor;

    @ApiModelProperty(value = "顺序")
    private Integer orderNo;

    @ApiModelProperty(value = "数据字典字段")
    private String dictField;

    @ApiModelProperty(value = "是否换行")
    private String wrapText;

    @ApiModelProperty(value = "字体大小")
    private Short fontSize;

    @ApiModelProperty(value = "字体")
    private String fontName;

    @ApiModelProperty(value = "边框粗细 0-13")
    private Short borderSize;

    @ApiModelProperty(value = "边框颜色 0-64")
    private Short borderColor;

    @ApiModelProperty(value = "下拉值")
    private List<SelectVO> codeList;
}
